Homework 5: Programming
CS 110
•
10 Points Total
Due
on-line Wed. Mar. 7, 2018
Assignment
Read chapters 3 and 4 in the Alice textbook. Answer the following questions -
type or neatly write your
answers. Repeat the questions being answered, then answer the questions. (2 pts each)
- What is an "expression" in Alice?
- Name at least 4 control structures you can use in Alice.
- Describe the process of stepwise refinement.
- Suppose you had three different methods that performed the same action on three
different objects. For
example, say the first method caused a cow to walk in
a circle, the second caused a kitty to walk in a
circle, and the third caused a
triceratops to walk in a circle. Describe how a parameter in your
method
definition could be used to reduce the amount of programming required by 2/3.
- What are the four guidelines for creating class-level methods? You may be brief.
Type your name, "CS 110 HW5: Programming", and the date completed --- at the top of your paper
and upload into Blackboard Learn by the due date. Remember the filenaming convention of
Lastname_Firstname_HW5.docx or something similar.